﻿@inject HttpClient HttpClient

@*@inject AuthenticationStateProvider GetAuthenticationStateAsync
@attribute [Authorize]*@

<AuthorizeView>
    <MudCard Elevation="0" Square="true" Class="@Class" Style="@Style">
        <MudCardHeader>
            <CardHeaderAvatar>
                <MudAvatar Image="images/avatar_jonny.jpg" />
            </CardHeaderAvatar>
            <CardHeaderContent>
                <MudText Typo="Typo.body2"> @context.User.FindFirst("FirstName").Value @context.User.FindFirst("LastName").Value</MudText>
                <MudText Typo="Typo.caption">@context.User.FindFirst("JobTitle").Value</MudText>
            </CardHeaderContent>
        </MudCardHeader>
    </MudCard>
</AuthorizeView>


@code {
    [Parameter] public string Class { get; set; }
    [Parameter] public string Style { get; set; }



    private UserDetails userDetails = new UserDetails();

 
}